package com.ym.ms.dto;

import com.ym.paas.enums.IResultCode;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author zhang
 */
public enum ResultCode implements IResultCode {
    /*
     * 业务异常
     */
    BIZ00001("BIZ00001", "用户不存在!"),
    BIZ00002("BIZ00002", "账号没有隶属仓库，请联系管理员！"),
    BIZ00003("BIZ00003", "当前用户无任何菜单权限，请联系管理员！"),
    BIZ00004("BIZ00004", "用户名或密码错误！");

    ResultCode(String code, String msg) {
        this.code = code;
        this.message = msg;
    }

    @ApiModelProperty(value = "000000/10000成功，其他失败")
    private String code;

    @ApiModelProperty(value = "返回消息")
    private String message;

    @Override
    public String getCode() {
        return code;
    }

    private void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    private void setMessage(String msg) {
        this.message = msg;
    }
}